diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 10:58:39 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 10:58:39 +0200 |
| commit | 012a1dc35c69cb51ff15b21f8303787b5299a626 (patch) | |
| tree | d6d39c7259eff637c62126d4739768ea8846647d /src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts | |
| parent | bd2f982c489b15ce1165c051fdedf35af979f784 (diff) | |
improve projects layout on mobile
Diffstat (limited to 'src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts')
| -rw-r--r-- | src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts b/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts index bdfa452..891a7b6 100644 --- a/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts +++ b/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts @@ -2,6 +2,7 @@ import { error } from '@sveltejs/kit'; import { getById } from '$lib/server/services/projects'; import { loadCurrent, loadCompletions } from '$lib/server/services/routines'; import { + archiveRoutineAction, completeRoutineAction, editRoutineAction, } from '$lib/server/services/routine-actions'; @@ -49,4 +50,8 @@ export const actions: Actions = { const data = await request.formData(); return completeRoutineAction(data, numericId(params.routineId)); }, + + archive: async ({ params }) => { + return archiveRoutineAction(numericId(params.routineId)); + }, }; |
